Explorar el Código

update auth test

Darien Raymond hace 8 años
padre
commit
775b4ef542
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      common/crypto/auth_test.go

+ 5 - 1
common/crypto/auth_test.go

@@ -102,7 +102,11 @@ func TestAuthenticationReaderWriterPartial(t *testing.T) {
 	go func() {
 		pw.Write(cache.BytesTo(1024))
 		time.Sleep(time.Second * 2)
-		pw.Write(cache.BytesFrom(1024))
+		pw.Write(cache.BytesRange(1024, 2048))
+		time.Sleep(time.Second * 2)
+		pw.Write(cache.BytesRange(2048, 3072))
+		time.Sleep(time.Second * 2)
+		pw.Write(cache.BytesFrom(3072))
 		time.Sleep(time.Second * 2)
 		pw.Close()
 	}()