Skip to content

Commit 992ca52

Browse files
committed
Enable go test in ci
1 parent 92d0435 commit 992ca52

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

pkg/agent/loadbalancer/loadbalancer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ func TestFailFast(t *testing.T) {
152152
defer os.RemoveAll(tmpDir)
153153

154154
cfg := cmds.Agent{
155-
ServerURL: "http://127.0.0.1:-1/",
155+
ServerURL: "http://127.0.0.1:0/",
156156
DataDir: tmpDir,
157157
}
158158

scripts/generate

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
cd $(dirname $0)/..
4+
5+
rm -rf build/data
6+
mkdir -p build/data
7+
8+
GO=${GO-go}
9+
10+
echo Running: "${GO}" generate
11+
"${GO}" generate

scripts/validate

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,5 @@ if [ -n "$DIRTY" ]; then
3131
git status --porcelain --untracked-files=no
3232
exit 1
3333
fi
34+
35+
"${GO}" test -v ./...

0 commit comments

Comments
 (0)