Skip to content

Commit b30dc4c

Browse files
committed
fix: sporadically failing RLS test
The entire test suite is ran with RLS enabled. One of the tests (migration dependency test) ran the migration that disabled RLS.
1 parent 0554747 commit b30dc4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/migration_dependency_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ var _ = Describe("migration dependency", Ordered, func() {
7373

7474
{
7575
// run the migrations again to ensure that the hashes are repopulated
76-
err := migrate.RunMigrations(sqlDB, api.Config{ConnectionString: connString})
76+
err := migrate.RunMigrations(sqlDB, api.Config{ConnectionString: connString, EnableRLS: true})
7777
Expect(err).To(BeNil())
7878

7979
// at the end, there should be no scrips to apply

0 commit comments

Comments
 (0)