From 57471cafbf627306d5a8732e358dd46c086896dd Mon Sep 17 00:00:00 2001 From: bobz965 Date: Wed, 4 Dec 2024 18:02:33 +0800 Subject: [PATCH] fix ut Signed-off-by: bobz965 --- pkg/ovs/ovn-nb-logical_switch_port_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ovs/ovn-nb-logical_switch_port_test.go b/pkg/ovs/ovn-nb-logical_switch_port_test.go index c96f26702cf..45b0ea3fae2 100644 --- a/pkg/ovs/ovn-nb-logical_switch_port_test.go +++ b/pkg/ovs/ovn-nb-logical_switch_port_test.go @@ -223,7 +223,7 @@ func (suite *OvnClientTestSuite) testCreateLogicalSwitchPort() { err = nbClient.CreateLogicalSwitchPort(lsName, lspName, ips, mac, podName, podNamespace, true, sgs, vips, true, dhcpUUIDs, vpcName) require.NoError(t, err) err = nbClient.CreateLogicalSwitchPort(lsName2, lspName, ips, mac, podName, podNamespace, true, sgs, vips, true, dhcpUUIDs, vpcName) - require.NoError(t, err) + require.Error(t, err) }) t.Run("failed client create logical switch port op error", func(t *testing.T) {