Update cumulative rewards tracking tests
This commit is contained in:
parent
b0699fc238
commit
ce6c05637f
@ -53,7 +53,7 @@ blockchainTests.resets('Cumulative Reward Tracking', env => {
|
|||||||
// Creates CR for epoch 1
|
// Creates CR for epoch 1
|
||||||
TestAction.Delegate,
|
TestAction.Delegate,
|
||||||
],
|
],
|
||||||
[],
|
[{ event: 'SetCumulativeReward', epoch: 0 }],
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
it('re-delegating in the same epoch', async () => {
|
it('re-delegating in the same epoch', async () => {
|
||||||
@ -68,7 +68,7 @@ blockchainTests.resets('Cumulative Reward Tracking', env => {
|
|||||||
// Updates CR for epoch 0
|
// Updates CR for epoch 0
|
||||||
TestAction.Delegate,
|
TestAction.Delegate,
|
||||||
],
|
],
|
||||||
[],
|
[{ event: 'SetCumulativeReward', epoch: 0 }, { event: 'SetCumulativeReward', epoch: 0 }],
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
it('delegating in new epoch', async () => {
|
it('delegating in new epoch', async () => {
|
||||||
@ -268,7 +268,7 @@ blockchainTests.resets('Cumulative Reward Tracking', env => {
|
|||||||
// Clears CR for epoch 2
|
// Clears CR for epoch 2
|
||||||
TestAction.Delegate,
|
TestAction.Delegate,
|
||||||
],
|
],
|
||||||
[],
|
[{ event: 'SetCumulativeReward', epoch: 3 }],
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
it('delegate in epoch 0 and 1, earn reward in epoch 3, then undelegate half', async () => {
|
it('delegate in epoch 0 and 1, earn reward in epoch 3, then undelegate half', async () => {
|
||||||
@ -303,7 +303,7 @@ blockchainTests.resets('Cumulative Reward Tracking', env => {
|
|||||||
// Clears CR for epoch 2
|
// Clears CR for epoch 2
|
||||||
TestAction.Undelegate,
|
TestAction.Undelegate,
|
||||||
],
|
],
|
||||||
[],
|
[{ event: 'SetCumulativeReward', epoch: 3 }],
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
it('delegate in epoch 1, 2, earn rewards in epoch 3, skip to epoch 4, then delegate', async () => {
|
it('delegate in epoch 1, 2, earn rewards in epoch 3, skip to epoch 4, then delegate', async () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user