From a28f0d1c07e1bba5e1b4e54c7cd066cd6e7f7f9b Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+ttytm@users.noreply.github.com> Date: Fri, 8 Nov 2024 19:09:13 +0100 Subject: [PATCH] test(get_slice): update to upstream changes on fetched url - pin fetched url to a tag reference --- src/_tests_get_slice_test.v | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/_tests_get_slice_test.v b/src/_tests_get_slice_test.v index febe970..703aa4c 100644 --- a/src/_tests_get_slice_test.v +++ b/src/_tests_get_slice_test.v @@ -2,13 +2,14 @@ module vibe fn test_get_slice() { - resp := get_slice('https://raw.githubusercontent.com/vlang/v/master/doc/docs.md', - 185_000, 10_000)! + resp := get_slice('https://raw.githubusercontent.com/vlang/v/refs/tags/0.4.8/doc/docs.md', + 135_000, 10_000)! assert resp.status == 200 assert resp.body.contains("Module { -\tname: 'mymodule', -\tdescription: 'My nice module wraps a simple C library.', -\tversion: '0.0.1' -\tdependencies: [] -}"), resp.body + name: 'mypackage' + description: 'My nice package.' + version: '0.0.1' + license: 'MIT' + dependencies: [] + }"), resp.body }