You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

status_pool_test.go 307 B

12345678910111213141516171819
  1. package sync
  2. import (
  3. "testing"
  4. "github.com/stretchr/testify/assert"
  5. )
  6. func Test_StatusTable(t *testing.T) {
  7. table := NewStatusTable()
  8. assert.False(t, table.IsRunning("xyz"))
  9. table.Start("xyz")
  10. assert.True(t, table.IsRunning("xyz"))
  11. table.Stop("xyz")
  12. assert.False(t, table.IsRunning("xyz"))
  13. }