aboutsummaryrefslogtreecommitdiff
path: root/tests/test-ovsdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-ovsdb.c')
-rw-r--r--tests/test-ovsdb.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/test-ovsdb.c b/tests/test-ovsdb.c
index 4949e393..1f697b4f 100644
--- a/tests/test-ovsdb.c
+++ b/tests/test-ovsdb.c
@@ -1476,13 +1476,8 @@ idl_set(struct ovsdb_idl *idl, char *commands, int step)
}
}
- for (;;) {
+ while ((status = ovsdb_idl_txn_commit(txn)) == TXN_INCOMPLETE) {
ovsdb_idl_run(idl);
- status = ovsdb_idl_txn_commit(txn);
- if (status != TXN_INCOMPLETE) {
- break;
- }
-
ovsdb_idl_wait(idl);
poll_block();
}