Skip to content

Commit

Permalink
Prevent log entry duplication #44
Browse files Browse the repository at this point in the history
  • Loading branch information
basilevs committed Mar 30, 2024
1 parent 1155e16 commit 9669e1f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
21 changes: 11 additions & 10 deletions rcpttTests/platform_tests/Recording/ColumnClickByIndex.test
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Element-Type: testcase
Element-Version: 3.0
External-Reference: http://jira4.xored.com/browse/QS-872
Id: _LaI78Ku2EeGxwqO33ZLSaw
Runtime-Version: 2.5.5.202302010428
Save-Time: 2/3/23, 2:53 PM
Runtime-Version: 2.5.5.202403300730
Save-Time: 3/30/24, 2:01 PM
Tags: Recording, Sorting
Testcase-Type: ecl

Expand Down Expand Up @@ -40,14 +40,15 @@ It is possible to sort entries ascending/descending by clicking on column by ind
Content-Type: text/ecl
Entry-Name: .content

try -times 3 -command {
clear-log-view
log string1
log string2
log string3
// workaround occasional entry duplication https://bugs.eclipse.org/bugs/show_bug.cgi?id=429372
get-view "Error Log" | get-tree | get-items | length | equals 3 | verify-true
}
clear-log-view
log string1
// workaround occasional entry duplication
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=429372
// https://github.com/eclipse/org.eclipse.rcptt/issues/44
get-view "Error Log" | get-tree | get-items | length | equals 1 | verify-true // Forces synchronization (waiting for file to load)
log string2
log string3
get-view "Error Log" | get-tree | get-items | length | equals 3 | verify-true

try -times 2 -command {
with [get-view "Error Log" | get-tree] {
Expand Down
6 changes: 3 additions & 3 deletions rcpttTests/platform_tests/Recording/ColumnTitleClick.test
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Element-Type: testcase
Element-Version: 3.0
External-Reference: http://jira4.xored.com/browse/QS-872
Id: __op1cKu2EeGxwqO33ZLSaw
Runtime-Version: 2.5.5.202403150112
Save-Time: 3/18/24, 8:32 PM
Runtime-Version: 2.5.5.202403300730
Save-Time: 3/30/24, 2:00 PM
Tags: Sorting
Testcase-Type: ecl

Expand Down Expand Up @@ -41,7 +41,7 @@ Content-Type: text/ecl
Entry-Name: .content

clear-log-view
log string1 // Reloads the log file asynchronously
log string1 // Reloads the log file asynchronously https://github.com/eclipse/org.eclipse.rcptt/issues/44
get-view "Error Log" | get-tree | get-items | length | equals 1 | verify-true // Forces synchronization (waiting for file to load)

log string2
Expand Down

0 comments on commit 9669e1f

Please sign in to comment.