use sliceview better

This commit is contained in:
Fran Bull 2025-03-17 12:21:24 -07:00
parent f64bd92ed2
commit 6f6c289d6e

View File

@ -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
}
}