fixed run.sh for GHA, increased wait retries for server, and fixed bug casting function
diff --git a/gremlin-go/docker-compose.yml b/gremlin-go/docker-compose.yml
index a3cc16e..6f0bd8d 100644
--- a/gremlin-go/docker-compose.yml
+++ b/gremlin-go/docker-compose.yml
@@ -49,7 +49,7 @@
- RUN_BASIC_AUTH_INTEGRATION_TESTS=true
- TEST_TRANSACTIONS=true
working_dir: /go_app
- command: ["./wait-for-server.sh", gremlin-test-server, "45940", "90", "bash", "-c",
+ command: ["./wait-for-server.sh", gremlin-test-server, "45940", "180", "bash", "-c",
"go install github.com/haveyoudebuggedit/gotestfmt/v2/cmd/gotestfmt@latest
&& go test -v -json ./... -race -covermode=atomic -coverprofile=\"coverage.out\" -coverpkg=./... | gotestfmt"]
depends_on:
diff --git a/gremlin-go/driver/graphTraversal.go b/gremlin-go/driver/graphTraversal.go
index 7267adb..0e711a9 100644
--- a/gremlin-go/driver/graphTraversal.go
+++ b/gremlin-go/driver/graphTraversal.go
@@ -676,7 +676,7 @@
return g
}
-func int32Args(args ...interface{}) []interface{} {
+func int32Args(args []interface{}) []interface{} {
for i, arg := range args {
switch val := arg.(type) {
case uint:
diff --git a/gremlin-go/run.sh b/gremlin-go/run.sh
index 66b93d5..8d2315b 100755
--- a/gremlin-go/run.sh
+++ b/gremlin-go/run.sh
@@ -44,7 +44,8 @@
export GREMLIN_SERVER="${1:-$GREMLIN_SERVER_VERSION}"
echo "$GREMLIN_SERVER"
-# Passes current gremlin server version into docker compose as environment variable
+# Passes current gremlin server version into docker compose as environment variable & removes all service containers
docker-compose up --build --exit-code-from gremlin-go-integration-tests
-# Removes all service containers
+EXIT_CODE=$?
docker-compose down
+exit $EXIT_CODE