From c5731ebeccde89811abd9869fd37b3a62669ce5a Mon Sep 17 00:00:00 2001 From: Chris Baker <1675087+cgbaker@users.noreply.github.com> Date: Fri, 26 Mar 2021 11:07:15 +0000 Subject: [PATCH] squash --- api/event_stream_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/event_stream_test.go b/api/event_stream_test.go index aad6377c7..5cb2464c5 100644 --- a/api/event_stream_test.go +++ b/api/event_stream_test.go @@ -152,9 +152,11 @@ func TestEventStream_PayloadValue(t *testing.T) { // verify that we get a node n, err := e.Node() require.NoError(t, err) - require.NotEqual(t, "", n.ID) + require.NotEmpty(t, n.ID) - // raw decoding to verify that the node did not contain SecretID + // perform a raw decoding and look for: + // - "ID", to make sure that raw decoding is correct + // - "SecretID", to make sure it's not present raw := make(map[string]map[string]interface{}, 0) cfg := &mapstructure.DecoderConfig{ Result: &raw,