(t *testing.T)
| 93 | } |
| 94 | |
| 95 | func TestPostgresDatastore(t *testing.T) { |
| 96 | testDatastore := storagefixtures.RunDatastoreTestContainer(t, "postgres") |
| 97 | |
| 98 | uri := testDatastore.GetConnectionURI(true) |
| 99 | cfg := sqlcommon.NewConfig() |
| 100 | ds, err := New(uri, cfg) |
| 101 | require.NoError(t, err) |
| 102 | defer ds.Close() |
| 103 | test.RunAllTests(t, ds) |
| 104 | |
| 105 | // Run tests with a custom large max_tuples_per_write value. |
| 106 | dsCustom, err := New(uri, sqlcommon.NewConfig( |
| 107 | sqlcommon.WithMaxTuplesPerWrite(5000), |
| 108 | )) |
| 109 | require.NoError(t, err) |
| 110 | defer dsCustom.Close() |
| 111 | |
| 112 | t.Run("WriteTuplesWithMaxTuplesPerWrite", test.WriteTuplesWithMaxTuplesPerWrite(dsCustom, context.Background())) |
| 113 | } |
| 114 | |
| 115 | // TestWriteWithSimpleProtocol is a regression test for a bug where Write operations |
| 116 | // failed with "invalid input syntax for type integer: TUPLE_OPERATION_WRITE" (SQLSTATE 22P02) |
nothing calls this directly
no test coverage detected
searching dependent graphs…