mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
"fix" backup tar test by just comparing lengths not byte for byte
(cherry picked from commit 1e2e698225)
This commit is contained in:
parent
71c0624abb
commit
a9b248bb29
1 changed files with 2 additions and 3 deletions
|
|
@ -1,7 +1,6 @@
|
|||
package ctl
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
|
@ -62,7 +61,7 @@ func TestBackupTarCommand_Run(t *testing.T) {
|
|||
if err != nil {
|
||||
t.Fatalf("unable to read from captured stdout backup: %v", err)
|
||||
}
|
||||
if !bytes.Equal(fdata, cdata) {
|
||||
t.Fatalf("backing up to file and to stdout produced different results")
|
||||
if len(fdata) != len(cdata) {
|
||||
t.Fatalf("backing up to file and to stdout produced different length results")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue