summaryrefslogtreecommitdiffstats
path: root/modules/sync/status_pool_test.go
blob: 61e5a27329f1ca90bacd73a4c3c79820f7cf5730 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package sync

import (
	"testing"

	"github.com/stretchr/testify/assert"
)

func Test_StatusTable(t *testing.T) {
	table := NewStatusTable()

	assert.False(t, table.IsRunning("xyz"))

	table.Start("xyz")
	assert.True(t, table.IsRunning("xyz"))

	table.Stop("xyz")
	assert.False(t, table.IsRunning("xyz"))
}