about summary refs log tree commit homepage
path: root/test/test_extras_exec_cgi.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_extras_exec_cgi.rb')
-rw-r--r--test/test_extras_exec_cgi.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_extras_exec_cgi.rb b/test/test_extras_exec_cgi.rb
index a9bcd34..5b2f2ff 100644
--- a/test/test_extras_exec_cgi.rb
+++ b/test/test_extras_exec_cgi.rb
@@ -1,5 +1,6 @@
 # Copyright (C) 2013-2015 all contributors <yahns-public@yhbt.net>
 # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
+# frozen_string_literal: true
 require_relative 'server_helper'
 
 # note: we use worker_processes to avoid polling/excessive wakeup issues
@@ -160,7 +161,7 @@ class TestExtrasExecCGI < Testcase
         poke_until_dead exec_pid
       when 11 # pid of executable, persistent
         c.write "GET /pid HTTP/1.0\r\nConnection: keep-alive\r\n\r\n"
-        buf = ""
+        buf = ''.dup
         begin
           buf << c.readpartial(666)
         end until buf =~ /\r\n\r\n\d+\n/