Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fSlLv-00051T-SJ for pgadmin-hackers@arkaria.postgresql.org; Tue, 12 Jun 2018 15:37:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fSlLu-0007xB-Gp for pgadmin-hackers@arkaria.postgresql.org; Tue, 12 Jun 2018 15:36:58 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fSlLt-0007x1-Pw for pgadmin-hackers@lists.postgresql.org; Tue, 12 Jun 2018 15:36:58 +0000 Received: from mx0b-00296801.pphosted.com ([148.163.153.148]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fSlLo-0004ZO-Mv for pgadmin-hackers@postgresql.org; Tue, 12 Jun 2018 15:36:55 +0000 Received: from pps.filterd (m0114584.ppops.net [127.0.0.1]) by mx0b-00296801.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w5CFaF2f002851 for ; Tue, 12 Jun 2018 15:36:50 GMT Received: from mail-it0-f71.google.com (mail-it0-f71.google.com [209.85.214.71]) by mx0b-00296801.pphosted.com with ESMTP id 2jjga8g1eh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 12 Jun 2018 15:36:49 +0000 Received: by mail-it0-f71.google.com with SMTP id m131-v6so4349000itm.5 for ; Tue, 12 Jun 2018 08:36:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5VEJJsRcBRzrgymbNsewXKk8G+BQZmyfdUBpxZBg08c=; b=EbKREpqqMjP6dAdfJ70gHSEfXILYSL8bTu9yyI8ZJTTL3V7GDe4b8YdF6a61jxATuZ 3jaxHunCUV7yAOTLSU2YtWSOdqDLnR+LhR5GkdGgKl07t9OR9ZNcwIFRm9Kdd7SS6Mw/ EPCZ7yplsgBImRWjYoQ8iMbXwQHMtrYvERX6xLWc3TrV9bz5FQjoFYLZgNhSgxNKpXAJ FuPgaHb/GHa/dnSZA9d4UjLy7h1GP4TL5VwhCV+o103QAf8UKZ/XipNf4rdJuKiIXAA7 vb8jA2PkEOgZ3xdbvGVC0PJq9DpyoPX9U82astQZ0Jajh4TyBSINkE5GQ2emyVITXsDK Hi0g== X-Gm-Message-State: APt69E10pxRaSOvgJbo0Chi2A3NFXPtBViE5/rD+D/6YaW3UiUlcthxY EPsska1oAbnA+blcA0xkN25Y1KVK5jvMtKgePLkHIZwDwaCaXS+YM7c5/zrz2pU373JTtgj4py0 cuSMbvAsRkLA7zdFHMA4RuWfmXEPR90vkzC3lDnRSG0tlumf96/kX+eh5zU3zyfDecGme X-Received: by 2002:a6b:2653:: with SMTP id m80-v6mr942444iom.301.1528817808811; Tue, 12 Jun 2018 08:36:48 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL4gQM6XxFKb6IIvdCGcpajaB4Hb8ZxhMlyjcxppyeGiGkmJlo1N00nWSE1Jv5+OYZ5+685NCy5rSUWR6Eh5Qo= X-Received: by 2002:a6b:2653:: with SMTP id m80-v6mr942410iom.301.1528817808302; Tue, 12 Jun 2018 08:36:48 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Victoria Henry Date: Tue, 12 Jun 2018 11:36:35 -0400 Message-ID: Subject: Re: [pgadmin4][Patch]: Test cases for the backup module To: Khushboo Vashi Cc: Dave Page , Joao De Almeida Pereira , pgadmin-hackers Content-Type: multipart/alternative; boundary="000000000000641b04056e73a2db" X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-06-12_01:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=2 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1805220000 definitions=main-1806120176 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --000000000000641b04056e73a2db Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Khushboo can you explain a little bit more this while loop? cnt =3D 0 while 1: if cnt > 1: break # Check the process list response1 =3D self.tester.get('/misc/bgprocess/?_=3D'.format( random.randint(1, 9999999))) self.assertEquals(response1.status_code, 200) process_list =3D json.loads(response1.data.decode('utf-8')) if len(process_list) > 0 and 'execution_time' in process_list[0]: break time.sleep(0.5) cnt +=3D 1