Skip to content

Commit

Permalink
Move VerifyDeletedResources at the end, check extnet removed
Browse files Browse the repository at this point in the history
  • Loading branch information
fredericgermain committed Aug 31, 2024
1 parent 76de6d1 commit a95fbdf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/integration/multinetwork_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ func TestContainerIPsMultiNetwork(t *testing.T) {
{"Start", multinetworkValidateStart},
{"VerifyNetworks", multinetworkValidateNetworks},
{"Delete", multinetworkValidateDelete},
{"VerifyDeletedResources", multinetworkValidateVerifyDeleted},
{"DeleteExtnet", deleteExtnet},
{"VerifyDeletedResources", multinetworkValidateVerifyDeleted},
}
for _, tc := range tests {
tc := tc
Expand Down Expand Up @@ -303,6 +303,9 @@ func multinetworkValidateVerifyDeleted(ctx context.Context, t *testing.T, profil
if strings.Contains(rr.Output(), profile) {
t.Errorf("expected network %q to not exist after deletion but contained: %s", profile, rr.Output())
}
if strings.Contains(rr.Output(), extnetNetworkName) {
t.Errorf("expected network %q to not exist after deletion but contained: %s", extnetNetworkName, rr.Output())
}
}

}
Expand Down

0 comments on commit a95fbdf

Please sign in to comment.