package main import ( "testing" "time" ) func TestQueue(t *testing.T) { localPool := NewGrainLocalPool(100, time.Minute, func(id CartId) (*CartGrain, error) { return &CartGrain{ Id: id, storageMessages: []Message{}, Items: []*CartItem{}, TotalPrice: 0, }, nil }) pool, err := NewSyncedPool(localPool, "localhost", nil) if err != nil { t.Errorf("Error creating pool: %v", err) } err = pool.AddRemote("localhost") if err != nil { t.Errorf("Error adding remote: %v", err) return } }