Skip to content

Commit 7989b22

Browse files
committed
update action definition tests to use unique file id to fix tests
1 parent 5e44867 commit 7989b22

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

db-tests/src/test/java/gov/nasa/jpl/aerie/database/ActionDefinitionVersionTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,14 @@ private int insertWorkspace(int parcelId) throws SQLException {
116116

117117
private int insertFileUpload() throws SQLException {
118118
try (final var statement = connection.createStatement()) {
119+
final var uuid = UUID.randomUUID().toString();
119120
final var res = statement.executeQuery(
120121
//language=sql
121122
"""
122123
INSERT INTO merlin.uploaded_file (path, name)
123-
VALUES ('test-action-path-%s', 'test-action-file')
124+
VALUES ('test-action-path-%s', 'test-action-file-%s')
124125
RETURNING id;
125-
""".formatted(UUID.randomUUID().toString()));
126+
""".formatted(uuid, uuid));
126127
res.next();
127128
return res.getInt("id");
128129
}

0 commit comments

Comments
 (0)