Skip to content

Commit

Permalink
Changes in smoke-test after upgrading GQL (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikugogoi authored Nov 23, 2022
1 parent 552371f commit 87e6deb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
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

0 comments on commit 87e6deb

Please sign in to comment.