quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

test1919 (822B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 connection reuse
      5 </keywords>
      6 </info>
      7 
      8 # Server-side
      9 <reply>
     10 <data nocheck="yes">
     11 HTTP/1.1 200 OK
     12 Content-Length: 6
     13 
     14 -foo-
     15 </data>
     16 </reply>
     17 
     18 # Client-side
     19 <client>
     20 <server>
     21 http
     22 </server>
     23 
     24 # This created a memory leak in 7.83.1 and earlier
     25 <name>
     26 set CURLOPT_XOAUTH2_BEARER and do connection reuse
     27 </name>
     28 <tool>
     29 lib%TESTNUMBER
     30 </tool>
     31 <command>
     32 http://%HOSTIP:%HTTPPORT/%TESTNUMBER
     33 </command>
     34 </client>
     35 
     36 # Verify data after the test has been "shot"
     37 <verify>
     38 <protocol>
     39 GET /%TESTNUMBER HTTP/1.1
     40 Host: %HOSTIP:%HTTPPORT
     41 Authorization: Bearer c4e448d652a961fda0ab64f882c8c161d5985f805d45d80c9ddca1
     42 Accept: */*
     43 
     44 GET /%TESTNUMBER HTTP/1.1
     45 Host: %HOSTIP:%HTTPPORT
     46 Authorization: Bearer c4e448d652a961fda0ab64f882c8c161d5985f805d45d80c9ddca1
     47 Accept: */*
     48 
     49 </protocol>
     50 </verify>
     51 </testcase>