Enable go test in ci

parent 92d04355
......@@ -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,
}
......
#!/bin/bash
cd $(dirname $0)/..
rm -rf build/data
mkdir -p build/data
GO=${GO-go}
echo Running: "${GO}" generate
"${GO}" generate
......@@ -31,3 +31,5 @@ if [ -n "$DIRTY" ]; then
git status --porcelain --untracked-files=no
exit 1
fi
"${GO}" test -v ./...
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment