Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
use tree set
  • Loading branch information
mutianf committed Oct 14, 2025
commit 67d1bf3f243aea4b74a2d08d6a4e48b6acf613a3
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@
import com.google.protobuf.FieldMask;
import io.grpc.Status;
import io.grpc.Status.Code;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;
import org.junit.Before;
Expand Down Expand Up @@ -1215,7 +1215,9 @@ public void testCreateAppProfileAddRowAffinityAddSetOfClusterIds() {
// Setup
Mockito.when(mockStub.createAppProfileCallable()).thenReturn(mockCreateAppProfileCallable);

Set<String> clusterIds = new HashSet<String>();
// We want to make sure the expected request has the same ordering as the request we build
// from CreateAppProfileRequest. Use a TreeSet to for stable ordering.
Set<String> clusterIds = new TreeSet<>();
clusterIds.add("cluster-id-1");
clusterIds.add("cluster-id-2");

Expand Down
Loading