Changeset 2083 for box/trunk/test/backupstore/testbackupstore.cpp
- Timestamp:
- 31/01/2008 23:53:27 (4 years ago)
- File:
-
- 1 edited
-
box/trunk/test/backupstore/testbackupstore.cpp (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/test/backupstore/testbackupstore.cpp
r1922 r2083 975 975 test_server_1(protocol, protocolReadOnly); 976 976 977 // sleep to ensure that the timestamp on the file will change 978 ::safe_sleep(1); 979 977 980 // Create and upload some test files 978 981 int64_t maxID = 0; … … 1049 1052 1050 1053 // Use the read only connection to verify that the directory is as we expect 1054 printf("\n\n==== Reading directory using read-only connection\n"); 1051 1055 check_dir_after_uploads(protocolReadOnly, attrtest); 1056 printf("done.\n\n"); 1052 1057 // And on the read/write one 1053 1058 check_dir_after_uploads(protocol, attrtest); 1054 1059 } 1055 1060 1061 // sleep to ensure that the timestamp on the file will change 1062 ::safe_sleep(1); 1063 1056 1064 // Check diffing and rsync like stuff... 1057 1065 // Build a modified file … … 1150 1158 subdirfileid = stored->GetObjectID(); 1151 1159 } 1160 1161 printf("\n==== Checking upload using read-only connection\n"); 1152 1162 // Check the directories on the read only connection 1153 1163 { … … 1182 1192 TEST_THAT(en->GetModificationTime() == 0); // dirs don't have modification times. 1183 1193 } 1194 1184 1195 { 1185 1196 // Command … … 1212 1223 TEST_THAT(dir.GetAttributes() == attr); 1213 1224 } 1225 printf("done.\n\n"); 1214 1226 1215 1227 // Check that we don't get attributes if we don't ask for them … … 1259 1271 } 1260 1272 1273 // sleep to ensure that the timestamp on the file will change 1274 ::safe_sleep(1); 1275 1261 1276 // Test moving a file 1262 1277 { … … 1281 1296 ConnectionException, Conn_Protocol_UnexpectedReply); 1282 1297 } 1283 1284 // sleep to ensure that the timestamp on the file will change1285 ::safe_sleep(1);1286 1298 1287 1299 // Rename within a directory … … 1342 1354 TEST_THAT(foundOld); 1343 1355 } 1356 1357 // sleep to ensure that the timestamp on the file will change 1358 ::safe_sleep(1); 1344 1359 1345 1360 // make a little bit more of a thing to look at
Note: See TracChangeset
for help on using the changeset viewer.
