<commit_before>package e2e

import (
	"io/ioutil"
	"net/http"
	"testing"
	"time"
)

func TestWebdash(t *testing.T) {
	setLogOutput(t)
	// Get the webdash health check endpoint
	address := fun.Conf.Server.HTTPAddress()
	client := http.Client{Timeout: 10 * time.Second}
	resp, err := client.Get(address + "/health.html")
	if err != nil {
		t.Fatal(err)
	}

	// Get the response body
	defer resp.Body.Close()
	b, berr := ioutil.ReadAll(resp.Body)
	if berr != nil {
		t.Fatal(berr)
	}

	if string(b) != "OK\n" {
		t.Fatal("Webdash health check fail", string(b))
	}
}<commit_msg>webdash: fix health check test<commit_after>package e2e

import (
	"io/ioutil"
	"net/http"
	"testing"
	"time"
)

func TestWebdash(t *testing.T) {
	setLogOutput(t)
	// Get the webdash health check endpoint
	address := fun.Conf.Server.HTTPAddress()
	client := http.Client{Timeout: 10 * time.Second}
	resp, err := client.Get(address + "/static/health.html")
	if err != nil {
		t.Fatal(err)
	}

	// Get the response body
	defer resp.Body.Close()
	b, berr := ioutil.ReadAll(resp.Body)
	if berr != nil {
		t.Fatal(berr)
	}

	if string(b) != "OK\n" {
		t.Fatal("Webdash health check fail", string(b))
	}
}
{'fraction_non_alphanumeric': 0.16382252559726962, 'fraction_numerical': 0.005119453924914676, 'mean_word_length': 3.6547619047619047, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4007484', 'n_tokens_mistral': 487, 'n_tokens_neox': 465, 'n_words': 108}