mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-14 15:40:06 +00:00
chore(streamlog): optimise polling mechanism
This commit is contained in:
@@ -31,6 +31,13 @@ export const mockJob: Job = {
|
||||
type: 'log',
|
||||
uri: 'log'
|
||||
},
|
||||
{
|
||||
rel: 'self',
|
||||
href: '/job',
|
||||
method: 'GET',
|
||||
type: 'job',
|
||||
uri: 'job'
|
||||
},
|
||||
{
|
||||
rel: 'state',
|
||||
href: '/state',
|
||||
@@ -54,3 +61,13 @@ export const mockAuthConfig: AuthConfig = {
|
||||
access_token: 'acc355',
|
||||
refresh_token: 'r3fr35h'
|
||||
}
|
||||
|
||||
export class MockStream {
|
||||
_write(chunk: string, _: any, next: Function) {
|
||||
next()
|
||||
}
|
||||
|
||||
reset() {}
|
||||
|
||||
destroy() {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user