Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
7662-snmp-test-More-not-in-time-window-detectio...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 7662-snmp-test-More-not-in-time-window-detection-adjustme.patch of Package erlang
From 09e011a326140052acc67373a885a07180536066 Mon Sep 17 00:00:00 2001 From: Micael Karlberg <bmk@erlang.org> Date: Tue, 11 Jan 2022 12:24:19 +0100 Subject: [PATCH 02/12] [snmp|test] More not-in-time-window detection adjustments --- lib/snmp/test/snmp_agent_test_lib.erl | 7 ++++++- lib/snmp/test/snmp_test_mgr.erl | 9 +++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/lib/snmp/test/snmp_agent_test_lib.erl b/lib/snmp/test/snmp_agent_test_lib.erl index 2f96a90235..69dcf52590 100644 --- a/lib/snmp/test/snmp_agent_test_lib.erl +++ b/lib/snmp/test/snmp_agent_test_lib.erl @@ -1144,8 +1144,13 @@ get_timeout() -> receive_pdu(To) -> receive {snmp_pdu, PDU} when is_record(PDU, pdu) -> - PDU + PDU; + {error, Reason} = ERROR -> + ?EPRINT("[await response-pdu] received unexpected error: " + "~n ~p", [Reason]), + ERROR after To -> + ?EPRINT("[await response-pdu] unexpected timeout"), {error, timeout} end. diff --git a/lib/snmp/test/snmp_test_mgr.erl b/lib/snmp/test/snmp_test_mgr.erl index d9532a7c6d..9e93509d20 100644 --- a/lib/snmp/test/snmp_test_mgr.erl +++ b/lib/snmp/test/snmp_test_mgr.erl @@ -150,14 +150,15 @@ receive_response(Timeout) -> d("await response within ~w ms",[Timeout]), receive {snmp_pdu, PDU} when is_record(PDU, pdu) -> - d("received PDU: ~n\t~p",[PDU]), + d("[await response] received PDU: " + "~n ~p", [PDU]), PDU; {error, Reason} = ERROR -> - d("received unexpected error: " - "~n\t\t~p", [Reason]), + ?EPRINT("[await response] received unexpected error: " + "~n ~p", [Reason]), ERROR after Timeout -> - d("response timeout", []), + ?EPRINT("[await response] unexpected timeout"), {error, timeout} end. -- 2.34.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor