mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
tidyups in test code
(This used to be ctdb commit 43061a4cf9b0995ebe6c86e27f7fc3aacb7bb23e)
This commit is contained in:
parent
6f9b29da22
commit
3a3bac80b9
@ -63,8 +63,8 @@ static void bench_fetch_1node(struct ctdb_context *ctdb)
|
||||
int dest, ret;
|
||||
struct ctdb_record_handle *h;
|
||||
|
||||
key.dptr = discard_const("testkey");
|
||||
key.dsize = strlen((const char *)key.dptr);
|
||||
key.dptr = discard_const(TESTKEY);
|
||||
key.dsize = strlen(TESTKEY);
|
||||
|
||||
ctdb_db = ctdb_db_handle(ctdb, "test.tdb");
|
||||
|
||||
|
@ -5,7 +5,7 @@ killall -q ctdb_test
|
||||
|
||||
echo "Trying 2 nodes"
|
||||
bin/ctdb_test --nlist tests/nodes.txt --listen 127.0.0.1:9001 &
|
||||
bin/ctdb_test --nlist tests/nodes.txt --listen 127.0.0.2:9001 &
|
||||
bin/ctdb_test --nlist tests/nodes.txt --listen 127.0.0.2:9001
|
||||
|
||||
sleep 3
|
||||
killall ctdb_test
|
||||
@ -14,9 +14,7 @@ echo "Trying 4 nodes"
|
||||
bin/ctdb_test --nlist tests/4nodes.txt --listen 127.0.0.1:9001 &
|
||||
bin/ctdb_test --nlist tests/4nodes.txt --listen 127.0.0.2:9001 &
|
||||
bin/ctdb_test --nlist tests/4nodes.txt --listen 127.0.0.3:9001 &
|
||||
bin/ctdb_test --nlist tests/4nodes.txt --listen 127.0.0.4:9001 &
|
||||
bin/ctdb_test --nlist tests/4nodes.txt --listen 127.0.0.4:9001
|
||||
sleep 3
|
||||
|
||||
killall ctdb_test
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user