Skip to content

Commit 58758e3

Browse files
committed
added comment to help future test fixing
1 parent 66a4698 commit 58758e3

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/osv_service_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ import (
1616
func TestOSVPostInsertCleanup(t *testing.T) {
1717
WithTestApp(t, "../initdb.sql", func(f *TestFixture) {
1818
t.Run("after inserting using the bulk method, we should have all indexes and constraints back in place correctly", func(t *testing.T) {
19+
// this test is used to make sure that all indexes and constraints are dropped which are not needed on bulk inserts
20+
// if you happen to fail this test, just make sure to add the sql to drop your index/constraint in the PrepareBulkInsert-Functions sql scripts
21+
// then also re-add it in the AddIndexesAndConstraints-Function sql scripts just the same as you added it in the migrations
22+
// this should then pass the test again
23+
1924
ctx := context.Background()
2025

2126
conn, err := f.Pool.Acquire(ctx)

0 commit comments

Comments
 (0)