using consts; avoid test data in production binary

This commit is contained in:
chrislu committed 2025-09-04 18:15:14 -07:00
1 parent 9b1919a8eb
commit 9f4d4e4559
10 files changed
+435 -223

No files matched your search

+4 -3
View File
@@ -34,9 +34,10 @@ func TestSQLEngine_SelectBasic(t *testing.T) {
t.Errorf("Expected %d columns, got %d", len(expectedColumns), len(result.Columns))
}
// Should have 4 sample rows (hybrid data includes both live_log and parquet_archive)
if len(result.Rows) != 4 {
t.Errorf("Expected 4 rows, got %d", len(result.Rows))
// In mock environment, only live_log data from unflushed messages
// parquet_archive data would come from parquet files in a real system
if len(result.Rows) == 0 {
t.Error("Expected rows in result")
}
}