Skip to content

Commit

Permalink
remove test
Browse files Browse the repository at this point in the history
  • Loading branch information
jvanecek committed Jul 2, 2024
1 parent 58bfacd commit 879716c
Showing 1 changed file with 0 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,39 +292,6 @@ StargateApplicationTest >> testGetPets [
assert: json links size equals: 1
]

{ #category : 'tests - logs' }
StargateApplicationTest >> testLogIncomingAndOutgoingRequestsDuringSuccessfulGet [

| logRecords |
logger runDuring: [
logIncomingHTTPRequests := logOutgoingHTTPRequests := true.
self testGetPets
].

logRecords := ( logger recordings copyLast: 6 ) collect: [ :record |
NeoJSONObject fromString:
( String streamContents: [ :stream | record printOneLineJsonOn: stream ] ) ].

self
assert: ( logRecords at: 1 ) message equals: 'Server accepted connection';
assert: ( ( logRecords at: 1 ) process matchesRegex: 'ZnManagingMultiThreadedServer HTTP port (\d+)' );

assert: ( logRecords at: 2 ) message equals: 'Outgoing HTTP request sent';
assert: ( logRecords at: 2 ) process equals: 'Launchpad CLI';

assert: ( logRecords at: 3 ) message equals: 'Incoming HTTP request received';
assert: ( logRecords at: 3 ) process equals: 'ZnManagingMultiThreadedServer HTTP worker';

assert: ( logRecords at: 4 ) message equals: 'Incoming HTTP request responded';
assert: ( logRecords at: 4 ) process equals: 'ZnManagingMultiThreadedServer HTTP worker';

assert: ( logRecords at: 5 ) message equals: 'Server closed connection';
assert: ( logRecords at: 5 ) process equals: 'ZnManagingMultiThreadedServer HTTP worker';

assert: ( logRecords at: 6 ) message equals: 'Outgoing HTTP request responded';
assert: ( logRecords at: 6 ) process equals: 'Launchpad CLI'
]

{ #category : 'tests - logs' }
StargateApplicationTest >> testLogIncomingRequestsDuringSuccessfulGet [

Expand Down

0 comments on commit 879716c

Please sign in to comment.