Skip to content

Commit

Permalink
Split some logs checking
Browse files Browse the repository at this point in the history
  • Loading branch information
artyom-smirnov committed Nov 8, 2024
1 parent 82dbe1b commit 8b3bf73
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions maintenance_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ func TestServiceManager_Sweep(t *testing.T) {
fmt.Println(log)
assert.Contains(t, log, `Sweep is started by SYSDBA
Database xxxxx
OIT xxx, OAT xxx, OST xxx, Next xxx
Sweep is finished
OIT xxx, OAT xxx, OST xxx, Next xxx`)
assert.Contains(t, log, `Sweep is finished
Database xxxxx
OIT xxx, OAT xxx, OST xxx, Next xxx`)
}
Expand All @@ -108,17 +108,17 @@ func TestServiceManager_Validate(t *testing.T) {
assert.NoError(t, err)
log := getFirebirdLog(t)
assert.Contains(t, log, `Database xxxxx
Validation started
Database xxxxx
Validation started`)
assert.Contains(t, log, `Database xxxxx
Validation finished: x errors, x warnings, x fixed`)

cleanFirebirdLog(t)
err = m.Validate(db, isc_spb_rpr_full)
assert.NoError(t, err)
log = getFirebirdLog(t)
assert.Contains(t, log, `Database xxxxx
Validation started
Database xxxxx
Validation started`)
assert.Contains(t, log, `Database xxxxx
Validation finished: x errors, x warnings, x fixed`)
}

Expand All @@ -139,8 +139,8 @@ func TestServiceManager_Mend(t *testing.T) {
assert.NoError(t, err)
log := getFirebirdLog(t)
assert.Contains(t, log, `Database xxxxx
Validation started
Database xxxxx
Validation started`)
assert.Contains(t, log, `Database xxxxx
Validation finished: x errors, x warnings, x fixed`)
}

Expand Down

0 comments on commit 8b3bf73

Please sign in to comment.