Skip to content

Commit

Permalink
[WIP] [REVERT] Temp changes for debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpromislow committed Nov 13, 2024
1 parent 34c784f commit 3d007dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/cache/sql/informer/listoption_indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,8 @@ func (l *ListOptionIndexer) ListByOptions(ctx context.Context, lo ListOptions, p
// assemble and log the final query
query += limitClause
query += offsetClause
logrus.Debugf("ListOptionIndexer prepared statement: %v", query)
logrus.Debugf("Params: %v", params)
logrus.Infof("ListOptionIndexer prepared statement: %v", query)
logrus.Infof("Params: %v", params)

// execute
stmt := l.Prepare(query)
Expand Down
4 changes: 3 additions & 1 deletion pkg/cache/sql/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package sql
import (
"context"
"fmt"
"os"
"testing"
"time"

Expand Down Expand Up @@ -37,6 +38,7 @@ type IntegrationSuite struct {
}

func (i *IntegrationSuite) SetupSuite() {
os.Setenv("KUBEBUILDER_ASSETS", "/Users/ericp/Library/Application Support/io.kubebuilder.envtest/k8s/1.31.0-darwin-arm64")
i.testEnv = envtest.Environment{}
restCfg, err := i.testEnv.Start()
i.Require().NoError(err, "error when starting env test - this is likely because setup-envtest wasn't done. Check the README for more information")
Expand Down Expand Up @@ -282,7 +284,7 @@ func (i *IntegrationSuite) TestSQLCacheFilters() {
Filters: test.filters,
}
partitions := []partition.Partition{defaultPartition}
ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)
ctx, cancel := context.WithTimeout(context.Background(), time.Hour*5)
defer cancel()
cfgMaps, total, continueToken, err := cache.ListByOptions(ctx, options, partitions, testNamespace)
i.Require().NoError(err)
Expand Down

0 comments on commit 3d007dd

Please sign in to comment.