summarylogtreecommitdiffstats
path: root/5c18a54935955903ada55096115c347e08118a75.patch
blob: 1a02b3b84a8a909c07e75d3fede6c0bde50ac170 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 5c18a54935955903ada55096115c347e08118a75 Mon Sep 17 00:00:00 2001
From: Steffen Ullrich <github@maulwuff.de>
Date: Tue, 18 Jul 2023 06:55:27 +0200
Subject: [PATCH] fix exiting subroutine with next in test

---
 t/19_call_with_dtmf.t | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/t/19_call_with_dtmf.t b/t/19_call_with_dtmf.t
index 36c4e9d..1468fa6 100644
--- a/t/19_call_with_dtmf.t
+++ b/t/19_call_with_dtmf.t
@@ -185,10 +185,10 @@ sub uas {
 	my $diff = ($seq - $lastseq) % 2**32;
 	if ($diff == 0) {
 	    diag("duplicate $seq");
-	    next;
+	    return;
 	} elsif ($diff>2**31) {
 	    diag("out of order $seq");
-	    next;
+	    return;
 	}
 	if ($diff>1) {
 	    $lost += $diff-1;