Skip to content

Commit 321e83e

Browse files
committed
DbxClientTest: Use prefix in all /delta tests so other activity can't affect the test run.
1 parent d2148bf commit 321e83e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/com/dropbox/core/DbxClientTest.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,13 @@ public void testDelta()
190190
{
191191
init();
192192

193+
// NOTE: In these tests, we never actually perform a non-path-prefix /delta call. This is so that
194+
// you can run these tests against a Dropbox account that is having modifications performed on it
195+
// by other clients. This is unfortunate, so maybe we should switch to requiring that the test
196+
// be run on an account that has nothing else going on?
197+
193198
// Get latest cursors before modifying dropbox folders
194-
String latestCursor = client.getDeltaLatestCursor();
199+
String latestCursor = client.getDeltaLatestCursorWithPathPrefix(p());
195200
String latestCursorWithPath = client.getDeltaLatestCursorWithPathPrefix(p("b"));
196201
assertNotNull(latestCursor);
197202
assertNotNull(latestCursorWithPath);

0 commit comments

Comments
 (0)