Skip to content

Commit

Permalink
fix(fsc): Added close call after invoke api (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
msohailhussain authored and Michael Ng committed Nov 14, 2019
1 parent 01fb83e commit 8f5043e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/run-fsc-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,5 @@ mkdir -p $GO_FEATUREFILES_PATH
cp -r $FEATURE_FILES_PATH $GO_FEATUREFILES_PATH

export DATAFILES_DIR="$DATAFILES_PATH"
go test -v $(pwd)/tests/integration --godog.tags="$TAG_FILTER_EXPRESSION"
go test -v $(pwd)/tests/integration --godog.tags="$TAG_FILTER_EXPRESSION" --godog.f=progress
echo "Ready for testing."
3 changes: 2 additions & 1 deletion tests/integration/support/client_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ func (c *ClientWrapper) InvokeAPI(request models.APIOptions) (models.APIResponse
default:
break
}

// TODO: For event batching, it should be conditional.
c.Client.Close()
response.ListenerCalled = c.DecisionService.(*optlyplugins.TestCompositeService).GetListenersCalled()
return response, err
}
Expand Down

0 comments on commit 8f5043e

Please sign in to comment.