mirror of
https://github.com/ceph/ceph
synced 2024-12-16 16:39:21 +00:00
Merge pull request #499 from dachary/wip-test_osd_types
remove racy test assertions
This commit is contained in:
commit
ab60b5dac2
@ -1081,11 +1081,6 @@ TEST_F(ObjectContextTest, read_write_lock)
|
||||
|
||||
obc.ondisk_write_unlock();
|
||||
|
||||
EXPECT_EQ(1, obc.readers_waiting);
|
||||
EXPECT_EQ(0, obc.readers);
|
||||
EXPECT_EQ(0, obc.writers_waiting);
|
||||
EXPECT_EQ(0, obc.unstable_writes);
|
||||
|
||||
do {
|
||||
cout << "Trying (2) with delay " << delay << "us\n";
|
||||
usleep(delay);
|
||||
@ -1144,11 +1139,6 @@ TEST_F(ObjectContextTest, read_write_lock)
|
||||
|
||||
obc.ondisk_read_unlock();
|
||||
|
||||
EXPECT_EQ(0, obc.readers_waiting);
|
||||
EXPECT_EQ(0, obc.readers);
|
||||
EXPECT_EQ(1, obc.writers_waiting);
|
||||
EXPECT_EQ(0, obc.unstable_writes);
|
||||
|
||||
do {
|
||||
cout << "Trying (4) with delay " << delay << "us\n";
|
||||
usleep(delay);
|
||||
|
Loading…
Reference in New Issue
Block a user