From 6f6c289d6e4c0dcce0f99c4add34dab0438f0e38 Mon Sep 17 00:00:00 2001 From: Fran Bull Date: Mon, 17 Mar 2025 12:21:24 -0700 Subject: [PATCH] use sliceview better --- tsconsensus/tsconsensus_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tsconsensus/tsconsensus_test.go b/tsconsensus/tsconsensus_test.go index 3bb13abc7..9ddd345de 100644 --- a/tsconsensus/tsconsensus_test.go +++ b/tsconsensus/tsconsensus_test.go @@ -191,8 +191,7 @@ func waitForNodesToBeTaggedInStatus(t testing.TB, ctx context.Context, ts *tsnet if tags == nil { return false } - sliceTags := tags.AsSlice() - if len(sliceTags) != 1 || sliceTags[0] != tag { + if tags.Len() != 1 || tags.At(0) != tag { return false } }