Skip to content

Commit 51abd2b

Browse files
committed
Delete toxiproxy ports after the completion of each test using this service.
1 parent b5a625c commit 51abd2b

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

flow/e2e/api_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2418,7 +2418,10 @@ func (s APITestSuite) TestCreateCDCFlowAttachConcurrentRequestsToxi() {
24182418
suffix := "race_" + s.suffix
24192419
pgWithProxy, proxy, err := SetupPostgresWithToxiproxy(s.t, suffix, 9902)
24202420
require.NoError(s.t, err)
2421-
defer pgWithProxy.Teardown(s.t, s.t.Context(), suffix)
2421+
defer func() {
2422+
pgWithProxy.Teardown(s.t, s.t.Context(), suffix)
2423+
require.NoError(s.t, proxy.Delete())
2424+
}()
24222425

24232426
// Create table
24242427
tableName := "toxiproxy_race_test"

flow/e2e/cancel_table_addition_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1308,6 +1308,7 @@ func (s APITestSuite) TestDoubleClickCancelTableAddition() {
13081308
defer func() {
13091309
require.NoError(s.t, proxy.Enable())
13101310
pgWithProxy.Teardown(s.t, s.t.Context(), suffix)
1311+
require.NoError(s.t, proxy.Delete())
13111312
}()
13121313

13131314
var cols string

0 commit comments

Comments
 (0)