Skip to content

Commit

Permalink
Issue #16: isolate source of test errors (use of doTransaction while …
Browse files Browse the repository at this point in the history
…inTransaction) ... fix it and restore some code erroneously removed and cross fingers
  • Loading branch information
dalehenrich committed Jan 10, 2015
1 parent a7940ff commit 72fa2e0
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
running
setUp
super setUp.
self gemServerClass register: self gemServerName.
(self gemServerClass register: self gemServerName) stopGems.
(ObjectLogEntry trace: 'setup: stopGems') addToLog.
GemServerRemoteTaskExample reset.
System commitTransaction
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"gemServerName" : "dkh 12/23/2014 13:28",
"runTest:client:task:" : "dkh 01/01/2015 11:17",
"scheduledTaskList" : "dkh 12/26/2014 18:17",
"setUp" : "dkh 01/09/2015 16:50",
"setUp" : "dkh 01/09/2015 17:20",
"startGems:" : "dkh 12/23/2014 13:04",
"stopGems:" : "dkh 12/23/2014 15:53",
"taskList100" : "dkh 01/02/2015 09:20",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
running
setUp
super setUp.
GemServerSeasideStyleExample register: self gemServerName.
(GemServerSeasideStyleExample register: self gemServerName) stopGems.
System commitTransaction
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"instance" : {
"gemServerName" : "dkh 01/02/2015 11:10",
"runTest:" : "dkh 01/02/2015 11:45",
"setUp" : "dkh 01/09/2015 16:49",
"setUp" : "dkh 01/09/2015 17:20",
"startGems:" : "dkh 01/02/2015 11:11",
"stopGems:" : "dkh 01/02/2015 11:11",
"tearDown" : "dkh 01/06/2015 13:42",
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
private
logControlEvent: label
self doTransaction: [ (ObjectLogEntry info: label object: self) addToLog ]
| eventBlock |
eventBlock := [ (ObjectLogEntry info: label object: self) addToLog ].
System inTransaction
ifTrue: [ eventBlock value ]
ifFalse: [ self doTransaction: eventBlock ]
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
private
scriptLogEvent: label object: anObject
"object log and transcript entries wanted"
"object log"

| eventBlock |
Transcript
cr;
show: 'scriptLogEvent: ' , label printString.
self doTransaction: [ (ObjectLogEntry info: label object: anObject) addToLog ]
eventBlock := [ (ObjectLogEntry info: label object: anObject) addToLog ].
System inTransaction
ifTrue: [ eventBlock value ]
ifFalse: [ self doTransaction: eventBlock ]
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"interactiveStartServiceOn:transactionMode:" : "dkh 01/06/2015 15:50",
"isRunning" : "SebastianHeidbrink 11/02/2014 15:00",
"isValidName:" : "dkh 11/26/2014 18:31",
"logControlEvent:" : "dkh 12/30/2014 07:24",
"logControlEvent:" : "dkh 01/09/2015 17:16",
"logDebug:" : "dkh 12/07/2014 10:09",
"logInfo:" : "dkh 12/07/2014 10:09",
"logStack:titled:" : "dkh 12/27/2014 12:22",
Expand All @@ -102,7 +102,7 @@
"restartGems" : "dkh 12/06/2014 13:04",
"saveContinuationFor:titled:inTransactionDo:" : "dkh 12/30/2014 07:25",
"scriptBinDirPath" : "dkh 11/29/2014 09:44",
"scriptLogEvent:object:" : "dkh 12/30/2014 07:25",
"scriptLogEvent:object:" : "dkh 01/09/2015 17:18",
"scriptServicePrologOn:" : "dkh 01/03/2015 22:10",
"scriptStartServiceOn:" : "dkh 01/06/2015 15:50",
"serverClass" : "dkh 11/29/2014 14:08",
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ setUp
"(GemServer gemServerNamed: 'Test_Server') stopGems"

super setUp.
GemServerTestServer register: self gemServerName.
(GemServerTestServer register: self gemServerName) stopGems.
System commitTransaction
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"gemServerName" : "dkh 12/22/2014 11:11",
"haltSymbol" : "dkh 12/22/2014 15:43",
"internalServerErrorSymbol" : "dkh 12/22/2014 15:18",
"setUp" : "dkh 01/09/2015 16:33",
"setUp" : "dkh 01/09/2015 17:21",
"startGems:" : "dkh 12/22/2014 11:16",
"stopGems:" : "dkh 12/22/2014 11:16",
"testError" : "dkh 01/09/2015 14:03",
Expand Down

Large diffs are not rendered by default.

0 comments on commit 72fa2e0

Please sign in to comment.