Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes in smoke-test after upgrading GQL #412

Merged
merged 1 commit into from
Nov 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions packages/uni-info-watcher/environments/test.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# Use mode demo when running watcher locally.
# Mode demo whitelists all tokens so that entity values get updated.
mode = "demo"
kind = "active"

[database]
type = "postgres"
Expand All @@ -27,17 +28,17 @@

[upstream.uniWatcher]
gqlEndpoint = "http://127.0.0.1:3003/graphql"
gqlSubscriptionEndpoint = "http://127.0.0.1:3003/graphql"
gqlSubscriptionEndpoint = "ws://127.0.0.1:3003/graphql"

[upstream.tokenWatcher]
gqlEndpoint = "http://127.0.0.1:3001/graphql"
gqlSubscriptionEndpoint = "http://127.0.0.1:3001/graphql"
gqlSubscriptionEndpoint = "ws://127.0.0.1:3001/graphql"

[jobQueue]
dbConnectionString = "postgres://postgres:postgres@localhost/uni-info-watcher-job-queue"
maxCompletionLagInSecs = 300
jobDelayInMilliSecs = 1000
eventsInBatch = 50
blockDelayInMilliSecs = 2000
prefetchBlocksInMem = true
prefetchBlocksInMem = false
prefetchBlockCount = 10
5 changes: 2 additions & 3 deletions packages/uni-info-watcher/src/smoke.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,15 @@ describe('uni-info-watcher', () => {
config = await getConfig(CONFIG_FILE);

const { upstream, server: { host, port } } = config;
const endpoint = `http://${host}:${port}/graphql`;

let { uniWatcher: { gqlEndpoint, gqlSubscriptionEndpoint }, ethServer: { rpcProviderEndpoint } } = upstream;
uniClient = new UniClient({
gqlEndpoint,
gqlSubscriptionEndpoint
});

gqlEndpoint = endpoint;
gqlSubscriptionEndpoint = endpoint;
gqlEndpoint = `http://${host}:${port}/graphql`;
gqlSubscriptionEndpoint = `ws://${host}:${port}/graphql`;
client = new Client({
gqlEndpoint,
gqlSubscriptionEndpoint
Expand Down
3 changes: 2 additions & 1 deletion packages/uni-watcher/environments/test.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[server]
host = "127.0.0.1"
port = 3003
kind = "active"

[database]
type = "postgres"
Expand Down Expand Up @@ -28,5 +29,5 @@
jobDelayInMilliSecs = 100
eventsInBatch = 50
blockDelayInMilliSecs = 2000
prefetchBlocksInMem = true
prefetchBlocksInMem = false
prefetchBlockCount = 10
5 changes: 2 additions & 3 deletions packages/uni-watcher/src/smoke.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,8 @@ describe('uni-watcher', () => {
cache
});

const endpoint = `http://${host}:${port}/graphql`;
const gqlEndpoint = endpoint;
const gqlSubscriptionEndpoint = endpoint;
const gqlEndpoint = `http://${host}:${port}/graphql`;
const gqlSubscriptionEndpoint = `ws://${host}:${port}/graphql`;
uniClient = new UniClient({
gqlEndpoint,
gqlSubscriptionEndpoint
Expand Down