Skip to content

Commit

Permalink
Merge 43d9e38 into efca85d
Browse files Browse the repository at this point in the history
  • Loading branch information
kozlovic committed Jun 6, 2020
2 parents efca85d + 43d9e38 commit 3360202
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -3,7 +3,7 @@ os:
- windows
language: go
go:
- 1.12.x
- 1.14.x
- 1.13.x
addons:
apt:
Expand Down
8 changes: 6 additions & 2 deletions server/clustering_test.go
Expand Up @@ -7139,10 +7139,12 @@ func TestClusteringRestoreSnapshotErrorDontSkipSeq(t *testing.T) {
t.Fatalf("Error on snapshot: %v", err)
}

c := s1.channels.get("foo")
ch1 := make(chan struct{})
ch2 := make(chan bool)
s1.channels.Lock()
c := s1.channels.channels["foo"]
c.store.Msgs = &blockingLookupStore{MsgStore: c.store.Msgs, inLookupCh: ch1, releaseCh: ch2}
s1.channels.Unlock()

// Configure second server.
s3sOpts := getTestDefaultOptsForClustering("c", false)
Expand Down Expand Up @@ -7257,10 +7259,12 @@ func TestClusteringRestoreSnapshotGapInSeq(t *testing.T) {
t.Fatalf("Error on snapshot: %v", err)
}

c := s1.channels.get("foo")
ch1 := make(chan struct{})
ch2 := make(chan bool)
s1.channels.Lock()
c := s1.channels.channels["foo"]
c.store.Msgs = &blockingLookupStore{MsgStore: c.store.Msgs, inLookupCh: ch1, releaseCh: ch2}
s1.channels.Unlock()

// Configure second server.
s3sOpts := getTestDefaultOptsForClustering("c", false)
Expand Down
4 changes: 3 additions & 1 deletion server/server_delivery_test.go
Expand Up @@ -353,10 +353,12 @@ func TestDeliveryRaceBetweenNextMsgAndStoring(t *testing.T) {

sc.Publish("foo", []byte("msg1"))

c := s.channels.get("foo")
ch1 := make(chan struct{})
ch2 := make(chan bool)
s.channels.Lock()
c := s.channels.channels["foo"]
c.store.Msgs = &blockingLookupStore{MsgStore: c.store.Msgs, inLookupCh: ch1, releaseCh: ch2}
s.channels.Unlock()

sub := s.clients.getSubs(clientName)[0]
wg := sync.WaitGroup{}
Expand Down

0 comments on commit 3360202

Please sign in to comment.