@@ -97,15 +97,15 @@ func isReady(ctx context.Context, c dktest.ContainerInfo) bool {
9797 time .Sleep (2 * time .Second )
9898 continue
9999 }
100-
100+
101101 // Test a simple query to ensure Trino is fully ready
102102 var result int
103103 if err = db .QueryRowContext (readyCtx , "SELECT 1" ).Scan (& result ); err != nil {
104104 log .Printf ("trino query test attempt %d error: %v" , i + 1 , err )
105105 time .Sleep (2 * time .Second )
106106 continue
107107 }
108-
108+
109109 log .Printf ("trino ready after %d attempts" , i + 1 )
110110 // Give Trino a moment to stabilize before tests start
111111 time .Sleep (3 * time .Second )
@@ -333,7 +333,7 @@ func TestTrinoSchemeConversion(t *testing.T) {
333333 if err != nil {
334334 t .Fatal (err )
335335 }
336-
336+
337337 // Apply the same logic as in the Open function
338338 q := migrate .FilterCustomQuery (purl )
339339 if q .Scheme == "trino" {
@@ -344,7 +344,7 @@ func TestTrinoSchemeConversion(t *testing.T) {
344344 q .Scheme = "http"
345345 }
346346 }
347-
347+
348348 if q .Scheme != tc .expectedScheme {
349349 t .Errorf ("Expected scheme %s, got %s for URL %s" , tc .expectedScheme , q .Scheme , tc .inputURL )
350350 }
@@ -367,7 +367,7 @@ func TestTrinoLockConcurrency(t *testing.T) {
367367 if err != nil {
368368 t .Fatal (err )
369369 }
370- defer d .Close ()
370+ defer func () { _ = d .Close () } ()
371371
372372 // Test basic locking functionality
373373 if err := d .Lock (); err != nil {
0 commit comments