Browse Source

Enable go test in ci

pull/2407/head
Erik Wilson 4 years ago
parent
commit
992ca52c31
No known key found for this signature in database
GPG Key ID: 28E43BB8BE202CF8
  1. 2
      pkg/agent/loadbalancer/loadbalancer_test.go
  2. 11
      scripts/generate
  3. 2
      scripts/validate

2
pkg/agent/loadbalancer/loadbalancer_test.go

@ -152,7 +152,7 @@ func TestFailFast(t *testing.T) {
defer os.RemoveAll(tmpDir)
cfg := cmds.Agent{
ServerURL: "http://127.0.0.1:-1/",
ServerURL: "http://127.0.0.1:0/",
DataDir: tmpDir,
}

11
scripts/generate

@ -0,0 +1,11 @@
#!/bin/bash
cd $(dirname $0)/..
rm -rf build/data
mkdir -p build/data
GO=${GO-go}
echo Running: "${GO}" generate
"${GO}" generate

2
scripts/validate

@ -31,3 +31,5 @@ if [ -n "$DIRTY" ]; then
git status --porcelain --untracked-files=no
exit 1
fi
"${GO}" test -v ./...

Loading…
Cancel
Save