git » libjio » commit bbe7a88

tests/behaviour: Make test 23 more interesting by using different sizes

author Alberto Bertogli
2011-02-27 21:20:03 UTC
committer Alberto Bertogli
2011-02-27 21:23:34 UTC
parent bc792921d5aa9824e0453bdd473f57cc1dc6991b

tests/behaviour: Make test 23 more interesting by using different sizes

Test 23 covers basic jtrans_add_[rw], and this patch makes it a little
bit more interesting by making the size of the write operations differ.

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

tests/behaviour/t_normal.py +3 -3

diff --git a/tests/behaviour/t_normal.py b/tests/behaviour/t_normal.py
index a9ba8df..3000892 100644
--- a/tests/behaviour/t_normal.py
+++ b/tests/behaviour/t_normal.py
@@ -370,8 +370,8 @@ def test_n23():
 	n = f.name
 
 	c1 = gencontent(1000)
-	c2 = gencontent(1000)
-	c3 = gencontent(1000)
+	c2 = gencontent(2000)
+	c3 = gencontent(3000)
 
 	buf1 = bytearray(0 for i in range(30))
 	buf2 = bytearray(0 for i in range(100))
@@ -379,7 +379,7 @@ def test_n23():
 	t = jf.new_trans()
 	t.add_w(c1, 0)
 	t.add_r(buf1, 0)
-	t.add_w(c2, len(c2))
+	t.add_w(c2, len(c1))
 	t.add_r(buf2, len(c1) - len(buf2) / 2)
 	t.add_w(c3, len(c1) + len(c2))
 	t.commit()