@@ -73,6 +73,7 @@ protected void testReadWrite(FateStore<TestEnv> store, ServerContext sctx)
73
73
assertEquals (1 , store .list ().count ());
74
74
75
75
// Push a test FATE op and verify we can read it back
76
+ txStore .setStatus (TStatus .IN_PROGRESS );
76
77
txStore .push (new TestRepo ("testOp" ));
77
78
TestRepo op = (TestRepo ) txStore .top ();
78
79
assertNotNull (op );
@@ -101,7 +102,7 @@ protected void testReadWrite(FateStore<TestEnv> store, ServerContext sctx)
101
102
assertEquals (TestRepo .class , ops .get (1 ).getClass ());
102
103
103
104
// test pop, TestOperation should be left
104
- txStore .setStatus (TStatus .FAILED ); // needed to satisfy the condition on pop
105
+ txStore .setStatus (TStatus .FAILED_IN_PROGRESS ); // needed to satisfy the condition on pop
105
106
txStore .pop ();
106
107
ops = txStore .getStack ();
107
108
assertEquals (1 , ops .size ());
@@ -112,8 +113,10 @@ protected void testReadWrite(FateStore<TestEnv> store, ServerContext sctx)
112
113
assertEquals (2 , store .list ().count ());
113
114
114
115
// test delete
116
+ txStore .setStatus (TStatus .SUCCESSFUL ); // needed to satisfy the condition on delete
115
117
txStore .delete ();
116
118
assertEquals (1 , store .list ().count ());
119
+ txStore2 .setStatus (TStatus .SUCCESSFUL ); // needed to satisfy the condition on delete
117
120
txStore2 .delete ();
118
121
assertEquals (0 , store .list ().count ());
119
122
}
0 commit comments