Merge pull request #494 from sosedoff/dump-test-error-adjust

Adjust error message matching for dump spec
This commit is contained in:
Dan Sosedoff 2020-10-18 10:27:34 -05:00 committed by GitHub
commit e864b5f275
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,7 +42,7 @@ func testDumpExport(t *testing.T) {
dump = Dump{Table: "foobar"}
err = dump.Export(url, saveFile)
assert.NotNil(t, err)
assert.Contains(t, err.Error(), "pg_dump: no matching tables were found")
assert.Contains(t, err.Error(), "no matching tables were found")
// Should drop "search_path" param from URI
dump = Dump{}