Skip to content

Commit

Permalink
fix spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
mattisonchao committed Nov 12, 2024
1 parent e42411d commit 9f8a427
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package io.streamnative.oxia.client.grpc;

public record WriteStreamKey(long shard, int mod) {}
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ public void setUp() throws Exception {
final WriteStreamWrapper writeStreamWrapper = new WriteStreamWrapper(stub.async());
clientByShardId = mock(OxiaStubProvider.class);
lenient().when(clientByShardId.getStubForShard(anyLong())).thenReturn(stub);
lenient().when(clientByShardId.getWriteStreamForShard(anyLong())).thenReturn(writeStreamWrapper);
lenient()
.when(clientByShardId.getWriteStreamForShard(anyLong()))
.thenReturn(writeStreamWrapper);
}

@AfterEach
Expand Down Expand Up @@ -328,7 +330,8 @@ public void sendFail() {
@Test
public void sendFailNoClient() {
var stubProvider = mock(OxiaStubProvider.class);
when(stubProvider.getWriteStreamForShard(anyLong())).thenThrow(new NoShardAvailableException(1));
when(stubProvider.getWriteStreamForShard(anyLong()))
.thenThrow(new NoShardAvailableException(1));

batch =
new WriteBatch(
Expand Down

0 comments on commit 9f8a427

Please sign in to comment.