-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #16: isolate source of test errors (use of doTransaction while …
…inTransaction) ... fix it and restore some code erroneously removed and cross fingers
- Loading branch information
1 parent
a7940ff
commit 72fa2e0
Showing
12 changed files
with
23 additions
and
14 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
...icationTools-ExampleV31.package/GemServerRemoteServerExampleTests.class/instance/setUp.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...icationTools-ExampleV31.package/GemServerSeasideStyleExampleTests.class/instance/setUp.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
repository/GsApplicationTools-ExampleV31.package/monticello.meta/version
Large diffs are not rendered by default.
Oops, something went wrong.
6 changes: 5 additions & 1 deletion
6
repository/GsApplicationTools-Server.package/GemServer.class/instance/logControlEvent..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ] |
8 changes: 6 additions & 2 deletions
8
...tory/GsApplicationTools-Server.package/GemServer.class/instance/scriptLogEvent.object..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
repository/GsApplicationTools-Server.package/monticello.meta/version
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
repository/GsApplicationTools-Test.package/monticello.meta/version
Large diffs are not rendered by default.
Oops, something went wrong.