Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kgyrtkirk committed Jun 18, 2024
1 parent e815914 commit 75c578a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
2 changes: 0 additions & 2 deletions quidem-it/new1.iq

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public QuidemRecorder(URI quidemURI, File file)
}
printStream.println("#started " + new Date());
printStream.println("!use " + quidemURI.toString());
printStream.println("!set outputformat mysql");
DruidHook.register(DruidHook.SQL, this);
}

Expand Down
17 changes: 10 additions & 7 deletions quidem-it/src/test/java/org/apache/druid/quidem/QTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@
import org.junit.jupiter.api.Test;

import java.io.File;
import java.util.List;
import java.io.IOException;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.fail;

public class QTest extends DruidQuidemTestBase
{
public QTest()
{
super();
assertEquals(QuidemCaptureResource.RECORD_PATH, getTestRoot());
}

@Override
Expand All @@ -41,11 +41,14 @@ protected File getTestRoot()
}

@Test
public void aa() {

List<String> n = getFileNames();
for(String name : n) {
run(name);
public void ensureNoRecordFilesPresent() throws IOException
{
// ensure that the captured ones are saved into this test's input path
assertEquals(QuidemCaptureResource.RECORD_PATH, getTestRoot());
for (String name : getFileNames()) {
if (name.startsWith("record-")) {
fail("Record file found: " + name);
}
}
}
}

0 comments on commit 75c578a

Please sign in to comment.