@@ -1106,7 +1106,7 @@ public void writeTest_deletes() throws Exception {
1106
1106
}
1107
1107
1108
1108
@ Test
1109
- public void writeTest_transactions () throws Exception {
1109
+ public void writeTest_nonTransaction () throws Exception {
1110
1110
// Given
1111
1111
String postPath = "https://localhost/stores/01YCP46JKYM8FJCQ37NMBYHE5X/write" ;
1112
1112
String writeTupleBody = String .format (
@@ -1142,7 +1142,7 @@ public void writeTest_transactions() throws Exception {
1142
1142
.writes (List .of (writeTuple , writeTuple , writeTuple , writeTuple , writeTuple ))
1143
1143
.deletes (List .of (tuple , tuple , tuple , tuple , tuple ));
1144
1144
ClientWriteOptions options =
1145
- new ClientWriteOptions ().disableTransactions (false ).transactionChunkSize (2 );
1145
+ new ClientWriteOptions ().disableTransactions (true ).transactionChunkSize (2 );
1146
1146
1147
1147
// When
1148
1148
var response = fga .write (request , options ).get ();
@@ -1180,7 +1180,7 @@ public void writeTest_transactions() throws Exception {
1180
1180
}
1181
1181
1182
1182
@ Test
1183
- public void writeTest_transactionsWithFailure () throws Exception {
1183
+ public void writeTest_nonTransactionsWithFailure () {
1184
1184
// Given
1185
1185
String postPath = "https://localhost/stores/01YCP46JKYM8FJCQ37NMBYHE5X/write" ;
1186
1186
String firstUser = "user:first" ;
@@ -1210,7 +1210,7 @@ public void writeTest_transactionsWithFailure() throws Exception {
1210
1210
.condition (DEFAULT_CONDITION ))
1211
1211
.collect (Collectors .toList ()));
1212
1212
ClientWriteOptions options =
1213
- new ClientWriteOptions ().disableTransactions (false ).transactionChunkSize (1 );
1213
+ new ClientWriteOptions ().disableTransactions (true ).transactionChunkSize (1 );
1214
1214
1215
1215
// When
1216
1216
var execException = assertThrows (
@@ -1243,7 +1243,7 @@ public void writeTest_transactionsWithFailure() throws Exception {
1243
1243
}
1244
1244
1245
1245
@ Test
1246
- public void writeTest_nonTransaction () throws Exception {
1246
+ public void writeTest_transaction () throws Exception {
1247
1247
// Given
1248
1248
String postPath = "https://localhost/stores/01YCP46JKYM8FJCQ37NMBYHE5X/write" ;
1249
1249
String writeTupleBody = String .format (
@@ -1272,7 +1272,7 @@ public void writeTest_nonTransaction() throws Exception {
1272
1272
1273
1273
// We expect transactionChunkSize will be ignored, and exactly one request will be sent.
1274
1274
ClientWriteOptions options =
1275
- new ClientWriteOptions ().disableTransactions (true ).transactionChunkSize (1 );
1275
+ new ClientWriteOptions ().disableTransactions (false ).transactionChunkSize (1 );
1276
1276
1277
1277
// When
1278
1278
var response = fga .write (request , options ).get ();
@@ -1283,7 +1283,7 @@ public void writeTest_nonTransaction() throws Exception {
1283
1283
}
1284
1284
1285
1285
@ Test
1286
- public void writeTest_nonTransactionsWithFailure () throws Exception {
1286
+ public void writeTest_transactionWithFailure () {
1287
1287
// Given
1288
1288
String postPath = "https://localhost/stores/01YCP46JKYM8FJCQ37NMBYHE5X/write" ;
1289
1289
String writeTupleBody = String .format (
@@ -1315,7 +1315,7 @@ public void writeTest_nonTransactionsWithFailure() throws Exception {
1315
1315
1316
1316
// We expect transactionChunkSize will be ignored, and exactly one request will be sent.
1317
1317
ClientWriteOptions options =
1318
- new ClientWriteOptions ().disableTransactions (true ).transactionChunkSize (1 );
1318
+ new ClientWriteOptions ().disableTransactions (false ).transactionChunkSize (1 );
1319
1319
1320
1320
// When
1321
1321
var execException = assertThrows (
0 commit comments