mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-20 13:04:25 +02:00
using consts; avoid test data in production binary
This commit is contained in:
1 parent
9b1919a8eb
commit
9f4d4e4559
10 files changed
+435
-223
No files matched your search
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user