From d71f0a2f52cdd3a356767805bd2dbe4c25acacc0 Mon Sep 17 00:00:00 2001 From: dolibali <139439533+dolibali@users.noreply.github.com> Date: Tue, 5 Nov 2024 16:38:40 +0800 Subject: [PATCH] fix concurrent issue in ovn-nb_test.go (#4697) Signed-off-by: dolibali Co-authored-by: dolibali --- pkg/ovs/ovn-nb_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/ovs/ovn-nb_test.go b/pkg/ovs/ovn-nb_test.go index 133aec3844c..9cf8110e667 100644 --- a/pkg/ovs/ovn-nb_test.go +++ b/pkg/ovs/ovn-nb_test.go @@ -112,7 +112,11 @@ func (suite *OvnClientTestSuite) testCreateLogicalPatchPort() { t.Run("failed client to create router port with chassises", func(t *testing.T) { t.Parallel() + lsName := "test-create-ls-failed-client" lrName := "test-create-lr-failed-client" + lspName := "test-create-lsp-failed-client" + lrpName := "test-create-lrp-failed-client" + // failed to create with failed client err := failedNbClient.CreateLogicalPatchPort(lsName, lrName, lspName, lrpName, "192.168.230.1/24,fc00::0af4:01/112", util.GenerateMac(), chassises...) require.Error(t, err)