diff options
Diffstat (limited to 'modules/sync/status_pool_test.go')
-rw-r--r-- | modules/sync/status_pool_test.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/sync/status_pool_test.go b/modules/sync/status_pool_test.go index eef3ff6f4f..b388c50db2 100644 --- a/modules/sync/status_pool_test.go +++ b/modules/sync/status_pool_test.go @@ -18,6 +18,15 @@ func Test_StatusTable(t *testing.T) { table.Start("xyz") assert.True(t, table.IsRunning("xyz")) + assert.False(t, table.StartIfNotRunning("xyz")) + assert.True(t, table.IsRunning("xyz")) + + table.Stop("xyz") + assert.False(t, table.IsRunning("xyz")) + + assert.True(t, table.StartIfNotRunning("xyz")) + assert.True(t, table.IsRunning("xyz")) + table.Stop("xyz") assert.False(t, table.IsRunning("xyz")) } |