Explorar el Código

Set sort oder for http-kit test

Patrick Falls hace 12 años
padre
commit
5910e3be27
Se han modificado 3 ficheros con 3 adiciones y 5 borrados
  1. 1 1
      http-kit/benchmark_config
  2. 1 1
      http-kit/hello/src/hello/handler.clj
  3. 1 3
      http-kit/setup.py

+ 1 - 1
http-kit/benchmark_config

@@ -7,7 +7,7 @@
       "db_url": "/http-kit/db/1",
       "query_url": "/http-kit/db/",
       "port": 8080,
-      "sort": 2
+      "sort": 36
     }
   }]
 }

+ 1 - 1
http-kit/hello/src/hello/handler.clj

@@ -39,7 +39,7 @@
 
 
 (defn start-server [{:keys [port worker db-host]}]
-  (db/use-database! (str "jdbc:mysql://" db-host "localhost/hello_world")
+  (db/use-database! (str "jdbc:mysql://" db-host "/hello_world")
                     "benchmarkdbuser"
                     "benchmarkdbpass")
   ;; Format responses as JSON

+ 1 - 3
http-kit/setup.py

@@ -5,13 +5,11 @@ import setup_util
 
 def start(args):
 
-  setup_util.replace_text("compojure/hello/src/hello/handler.clj", ":host \".*\"", ":host \"" + args.database_host + "\"")
-
   try:
     subprocess.check_call("lein deps", shell=True, cwd="http-kit/hello")
     # lein run -- --help for more options
     command = "lein run -- --db-host " + args.database_host
-    subprocess.check_call(command, shell=True, cwd="http-kit/hello")
+    subprocess.Popen(command, shell=True, cwd="http-kit/hello")
     return 0
   except subprocess.CalledProcessError:
     return 1