Skip to content

Commit

Permalink
[gravel-gateway-compat] create new instance of gateway for test
Browse files Browse the repository at this point in the history
  • Loading branch information
Geof Holbrook committed Oct 27, 2023
1 parent 3f615d6 commit c42ff47
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions test/pushgatewayTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,16 @@ describe.each([
.post('/metrics', body)
.reply(200);

instance.requireJobName = false;
instance = new Pushgateway(
'http://192.168.99.100:9091',
{
timeout: 10,
requireJobName: false,
},
registry,
);

return instance.pushAdd().then(() => {
instance.requireJobName = true;
return expect(mockHttp.isDone());
});
return instance.pushAdd().then(() => expect(mockHttp.isDone()));
});
});

Expand Down

0 comments on commit c42ff47

Please sign in to comment.