diff options
| author | Paul Buetow <paul@buetow.org> | 2021-10-03 13:32:20 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2021-10-03 13:39:03 +0300 |
| commit | b2dbe133347ef220ff781ffeb1f8137245f5235f (patch) | |
| tree | d2ff5f5cc0b02159a14f51b1850e4427877ef9a7 /integrationtests/commons.go | |
| parent | 07e1470892beacf0722276f94bacbd822b002540 (diff) | |
when a mapreduce outfile is specified also always write a outfile.query file
Diffstat (limited to 'integrationtests/commons.go')
| -rw-r--r-- | integrationtests/commons.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/integrationtests/commons.go b/integrationtests/commons.go index 74eeac5..f789322 100644 --- a/integrationtests/commons.go +++ b/integrationtests/commons.go @@ -78,9 +78,12 @@ func compareFilesContents(t *testing.T, fileA, fileB string) error { return err } + // The mapreduce result can be in a different order each time (Golang maps are not sorted). + t.Log(fmt.Sprintf("Checking whether %s has same lines as file %s (ignoring line order)", fileA, fileB)) if err := compareMaps(a, b); err != nil { return err } + t.Log(fmt.Sprintf("Checking whether %s has same lines as file %s (ignoring line order)", fileB, fileA)) if err := compareMaps(b, a); err != nil { return err } |
