Skip to content

Commit

Permalink
Merge pull request #134 from sgotti/datamanager_tests_remove_some_logs
Browse files Browse the repository at this point in the history
datamanager: remove some logs from tests
  • Loading branch information
sgotti authored Oct 2, 2019
2 parents 9588394 + a7ca284 commit 4358654
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/datamanager/datamanager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import (
"agola.io/agola/internal/objectstorage/posix"
ostypes "agola.io/agola/internal/objectstorage/types"
"agola.io/agola/internal/testutil"
"agola.io/agola/internal/util"

"go.uber.org/zap"
"go.uber.org/zap/zapcore"
Expand Down Expand Up @@ -740,7 +739,6 @@ func testCheckpoint(t *testing.T, basePath string) {
func checkDataFiles(ctx context.Context, t *testing.T, dm *DataManager, expectedEntriesMap map[string]*DataEntry) error {
// read the data file
curDataStatus, err := dm.GetLastDataStatus()
t.Logf("curDataStatus: %s", util.Dump(curDataStatus))
if err != nil {
return err
}
Expand All @@ -749,9 +747,7 @@ func checkDataFiles(ctx context.Context, t *testing.T, dm *DataManager, expected

for dataType := range curDataStatus.Files {
var prevLastEntryID string
t.Logf("dataType: %q", dataType)
for i, file := range curDataStatus.Files[dataType] {
t.Logf("data file: %d %q", i, file)
dataFileIndexf, err := dm.ost.ReadObject(dm.DataFileIndexPath(dataType, file.ID))
if err != nil {
return err
Expand Down

0 comments on commit 4358654

Please sign in to comment.