diff --git a/.gitignore b/.gitignore index f5f5405d3a..c876483219 100644 --- a/.gitignore +++ b/.gitignore @@ -45,4 +45,3 @@ dependency-graph.png *.aux *.out *.synctex.gz -contract_tests/* diff --git a/Makefile b/Makefile index 114f56b2be..bba0a5c51a 100644 --- a/Makefile +++ b/Makefile @@ -89,13 +89,6 @@ endif build-windows-client: go.sum GOOS=windows GOARCH=amd64 go build -mod=readonly $(BUILD_FLAGS) -o build/wasmd.exe ./cmd/wasmd -build-contract-tests-hooks: -ifeq ($(OS),Windows_NT) - go build -mod=readonly $(BUILD_FLAGS) -o build/contract_tests.exe ./cmd/contract_tests -else - go build -mod=readonly $(BUILD_FLAGS) -o build/contract_tests ./cmd/contract_tests -endif - install: go.sum go install -mod=readonly $(BUILD_FLAGS) ./cmd/wasmd diff --git a/cmd/contract_tests/main.go b/cmd/contract_tests/main.go deleted file mode 100644 index 4f27b03387..0000000000 --- a/cmd/contract_tests/main.go +++ /dev/null @@ -1,44 +0,0 @@ -package main - -import ( - "fmt" - - "github.com/snikch/goodman/hooks" - "github.com/snikch/goodman/transaction" -) - -func main() { - // This must be compiled beforehand and given to dredd as parameter, in the meantime the server should be running - h := hooks.NewHooks() - server := hooks.NewServer(hooks.NewHooksRunner(h)) - h.BeforeAll(func(t []*transaction.Transaction) { - fmt.Println("Sleep 5 seconds before all modification") - }) - h.BeforeEach(func(t *transaction.Transaction) { - fmt.Println("before each modification") - }) - h.Before("/version > GET", func(t *transaction.Transaction) { - fmt.Println("before version TEST") - }) - h.Before("/node_version > GET", func(t *transaction.Transaction) { - fmt.Println("before node_version TEST") - }) - h.BeforeEachValidation(func(t *transaction.Transaction) { - fmt.Println("before each validation modification") - }) - h.BeforeValidation("/node_version > GET", func(t *transaction.Transaction) { - fmt.Println("before validation node_version TEST") - }) - h.After("/node_version > GET", func(t *transaction.Transaction) { - fmt.Println("after node_version TEST") - }) - h.AfterEach(func(t *transaction.Transaction) { - fmt.Println("after each modification") - }) - h.AfterAll(func(t []*transaction.Transaction) { - fmt.Println("after all modification") - }) - server.Serve() - defer server.Listener.Close() - fmt.Print(h) -}