Skip to content

Commit 8f5043e

Browse files
msohailhussainMichael Ng
authored andcommitted
fix(fsc): Added close call after invoke api (#184)
1 parent 01fb83e commit 8f5043e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

scripts/run-fsc-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,5 @@ mkdir -p $GO_FEATUREFILES_PATH
6666
cp -r $FEATURE_FILES_PATH $GO_FEATUREFILES_PATH
6767

6868
export DATAFILES_DIR="$DATAFILES_PATH"
69-
go test -v $(pwd)/tests/integration --godog.tags="$TAG_FILTER_EXPRESSION"
69+
go test -v $(pwd)/tests/integration --godog.tags="$TAG_FILTER_EXPRESSION" --godog.f=progress
7070
echo "Ready for testing."

tests/integration/support/client_wrapper.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ func (c *ClientWrapper) InvokeAPI(request models.APIOptions) (models.APIResponse
135135
default:
136136
break
137137
}
138-
138+
// TODO: For event batching, it should be conditional.
139+
c.Client.Close()
139140
response.ListenerCalled = c.DecisionService.(*optlyplugins.TestCompositeService).GetListenersCalled()
140141
return response, err
141142
}

0 commit comments

Comments
 (0)