From a314f90dda5dbc0b240b5c40e964b7fa0897a7d2 Mon Sep 17 00:00:00 2001 From: Tomofumi Hayashi Date: Fri, 15 Nov 2019 15:37:38 +0900 Subject: [PATCH] Fix unit test to track on updated error message --- multus/multus_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/multus/multus_test.go b/multus/multus_test.go index db8b65d3c..aed78d7d8 100644 --- a/multus/multus_test.go +++ b/multus/multus_test.go @@ -1169,7 +1169,7 @@ var _ = Describe("multus operations", func() { _, err = cmdAdd(args, fExec, nil) Expect(fExec.addIndex).To(Equal(2)) Expect(fExec.delIndex).To(Equal(2)) - Expect(err).To(MatchError("Multus: error adding pod to network \"other1\": delegateAdd: error invoking DelegateAdd - \"other-plugin\": error in getting result from AddNetwork: expected plugin failure")) + Expect(err).To(MatchError("Multus: [/]: error adding container to network \"other1\": delegateAdd: error invoking DelegateAdd - \"other-plugin\": error in getting result from AddNetwork: expected plugin failure")) // Cleanup default network file. if _, errStat := os.Stat(configPath); errStat == nil {