From a3f8a52fd4b192db339540152033b94f1e010b31 Mon Sep 17 00:00:00 2001 From: Tim Gross Date: Fri, 17 Nov 2023 14:35:07 -0500 Subject: [PATCH] E2E: fix assertion in dynamic node metadata test (#19120) In #18664 we change how null values worked with dynamic node metadata so that they were no longer returned if there wasn't also a static value for that key. The test assertion in E2E was not updated to match the new behavior. Fixes: #19112 --- e2e/workload_id/nodemeta_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e/workload_id/nodemeta_test.go b/e2e/workload_id/nodemeta_test.go index 394582098..6bb2c5d48 100644 --- a/e2e/workload_id/nodemeta_test.go +++ b/e2e/workload_id/nodemeta_test.go @@ -157,6 +157,6 @@ func testDynamicNodeMetadata(t *testing.T) { must.Eq(t, "bar", resp.Meta[keyFoo]) must.Eq(t, "set", resp.Meta[keyUnset]) must.MapNotContainsKey(t, resp.Meta, keyEmpty) - must.MapContainsKey(t, resp.Dynamic, keyEmpty) + must.MapNotContainsKey(t, resp.Dynamic, keyEmpty) must.Nil(t, resp.Dynamic[keyEmpty]) }