Enchantrix/pkg/pool/pool_test.go

20 lines
325 B
Go
Raw Permalink Normal View History

package pool
import (
"github.com/Snider/Enchantrix/pkg/miner"
"testing"
"time"
"github.com/stretchr/testify/assert"
)
func TestPoolClient(t *testing.T) {
jq := miner.NewJobQueue()
pc := New("test-url", "test-user", "test-pass", jq)
pc.Start()
time.Sleep(6 * time.Second)
pc.Stop()
assert.NotNil(t, jq.Get())
}