Fossil

Check-in [c29c75c9]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add a 1.2 sec delay before the test wiki-30 because it explicitly uses the current date and time, and other changes made to technotes implicitly use the current time, causing a technote name collision if the test script happens to execute with the relevent bits happening within the same wall clock second, at least on Windows. This is partly a kludge to make this test case pass reliably. It would probably be better for test cases to not have more than one reference to 'now' in a way that would cause a name collision, that is worth further investigation. Also, at first glance it doesn't look like the suite actually created to technotes at the same second, but rather it was one of the edits to an older technote that is causing the collision.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | technoteattachcli
Files: files | file ages | folders
SHA1:c29c75c938f9c0002ee8effffe7d67a68e8b0877
User & Date: rberteig 2016-03-23 21:19:28
Context
2016-03-24
18:28
Fixed inconsistent calls to usage() in the attachment command which result in printing the fossil command name twice in the Usage: message. check-in: 420a5fc0 user: rberteig tags: technoteattachcli
2016-03-23
21:19
Add a 1.2 sec delay before the test wiki-30 because it explicitly uses the current date and time, and other changes made to technotes implicitly use the current time, causing a technote name collision if the test script happens to execute with the relevent bits happening within the same wall clock second, at least on Windows. This is partly a kludge to make this test case pass reliably. It would probably be better for test cases to not have more than one reference to 'now' in a way that would cause a name collision, that is worth further investigation. Also, at first glance it doesn't look like the suite actually created to technotes at the same second, but rather it was one of the edits to an older technote that is causing the collision. check-in: c29c75c9 user: rberteig tags: technoteattachcli
20:51
Added wiki.test as received from David Vines. This is a snapshot, the test file (usually) runs, but has an issue that I am diagnosing related to the test wiki-30. check-in: f7513f87 user: rberteig tags: technoteattachcli
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to test/wiki.test.

155
156
157
158
159
160
161

162
163
164
165
166
167
168
169
170
# Check longest form of timestamp for the technote
write_file f7 "Different timestamps"
fossil wiki create technotenow f7 --technote {2016-01-04 12:34:56+00:00}
test wiki-29 {$CODE == 0}

###############################################################################
# Check a technote appears on the timeline

write_file f8 "Contents of a 'unique' tech note"
fossil wiki create {Unique technote} f8 --technote now
fossil timeline
test wiki-30 {[string match *Unique*technote* [second_data_line]]}

###############################################################################

test_cleanup








>









155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
# Check longest form of timestamp for the technote
write_file f7 "Different timestamps"
fossil wiki create technotenow f7 --technote {2016-01-04 12:34:56+00:00}
test wiki-29 {$CODE == 0}

###############################################################################
# Check a technote appears on the timeline
after 1200
write_file f8 "Contents of a 'unique' tech note"
fossil wiki create {Unique technote} f8 --technote now
fossil timeline
test wiki-30 {[string match *Unique*technote* [second_data_line]]}

###############################################################################

test_cleanup