internal/db/schema: fix dropped test error (#948)

pull/951/head
Lars Lehtonen 5 years ago committed by GitHub
parent 2d850ac95c
commit 35eadd6e40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -95,6 +95,7 @@ func TestRollForward(t *testing.T) {
require.NoError(t, err)
// TODO: Extract out a way to mock the db to test failing rollforwards.
_, err = d.ExecContext(ctx, "TRUNCATE boundary_schema_version; INSERT INTO boundary_schema_version (version, dirty) VALUES (2, true)")
require.NoError(t, err)
assert.Error(t, m.RollForward(ctx))
}

Loading…
Cancel
Save