Test fixes

Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
Derek Collison
2021-03-14 06:18:50 -07:00
parent cbbe6dc9c5
commit d4e4c37e94
3 changed files with 4 additions and 5 deletions

View File

@@ -837,11 +837,12 @@ func TestFileStoreCompactLastPlusOne(t *testing.T) {
if state.Msgs != 0 {
t.Fatalf("Expected no message but got %d", state.Msgs)
}
fmt.Printf("state is %+v\n", state)
fs.StoreMsg(subj, nil, msg)
state = fs.State()
fmt.Printf("state is %+v\n", state)
if state.Msgs != 1 {
t.Fatalf("Expected one message but got %d", state.Msgs)
}
}
func TestFileStoreCompactPerf(t *testing.T) {

View File

@@ -3720,8 +3720,6 @@ func TestJetStreamClusterRemoveServer(t *testing.T) {
sl := c.streamLeader("$G", "TEST")
c.removeJetStream(sl)
fmt.Printf("Will remove %q\n", sl)
c.waitOnLeader()
c.waitOnStreamLeader("$G", "TEST")

View File

@@ -331,7 +331,7 @@ func TestNoRaceLargeClusterMem(t *testing.T) {
checkClusterFormed(t, servers...)
// Calculate in MB what we are using now.
const max = 60 * 1024 * 1024 // 60MB
const max = 64 * 1024 * 1024 // 64MB
runtime.ReadMemStats(&m)
used := m.TotalAlloc - pta
if used > max {