diff --git a/Makefile b/Makefile index 9048359..e6451b0 100644 --- a/Makefile +++ b/Makefile @@ -25,4 +25,8 @@ examples: CGO_ENABLED=0 GOOS=linux go build -o ./examples/delete_dir/delete_dir.out ./examples/delete_dir/delete_dir.go CGO_ENABLED=0 GOOS=linux go build -o ./examples/make_dir/make_dir.out ./examples/make_dir/make_dir.go CGO_ENABLED=0 GOOS=linux go build -o ./examples/get_ticket/get_ticket.out ./examples/get_ticket/get_ticket.go - CGO_ENABLED=0 GOOS=linux go build -o ./examples/get_ticket_anon/get_ticket_anon.out ./examples/get_ticket_anon/get_ticket_anon.go \ No newline at end of file + CGO_ENABLED=0 GOOS=linux go build -o ./examples/get_ticket_anon/get_ticket_anon.out ./examples/get_ticket_anon/get_ticket_anon.go + +.PHONY: test +test: + go test -timeout 3000s -v -p 1 ./... diff --git a/test/testcases/main.go b/test/testcases/main.go index 83101cf..4baa6aa 100644 --- a/test/testcases/main.go +++ b/test/testcases/main.go @@ -62,6 +62,11 @@ func shutdown() { "function": "shutdown", }) + // empty global variables + account = nil + testFiles = []string{} + testDirs = []string{} + err := server.StopServer() if err != nil { logger.Error(err)