Skip to content

Commit

Permalink
make db test more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
urld committed Feb 20, 2022
1 parent 15da31d commit 84b30dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e
MAKE="make -e"
export VERSION=$(git describe --exact-match --tags 2>/dev/null || git log -n1 --pretty='%h')


$MAKE install
$MAKE test

GOOS=linux GOARCH=amd64 $MAKE dist
Expand Down
2 changes: 1 addition & 1 deletion record_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func withDb(csvFile string, t *testing.T) *TimeTrackingDb {
}

func compareDb(expectedDb, actualDb *TimeTrackingDb, t *testing.T) {
cmd := exec.Command("sqldiff", expectedDb.filename, actualDb.filename)
cmd := exec.Command("sqldiff", "--table", "records", expectedDb.filename, actualDb.filename)
out, err := cmd.Output()
if err != nil {
t.Fatal(err)
Expand Down

0 comments on commit 84b30dd

Please sign in to comment.